﻿using Medianamik.Core.DAL;
using Medianamik.Core.DAL.Repositories;
using Medianamik.Core.DAL.Services;
using SubSonic;

namespace Medianamik.UI.Web.Shop.Data.Repositories
{
    public class ShippingBaseRepository<TCollection, TItem> : 
        MedianamikRepository<TCollection, TItem>, 
        IShippingBaseRepository<TItem>
        where TItem : IShippingBase, IRecordBase, new()
        where TCollection : ICollectionWithChildren<TCollection, TItem>, new()
    {
        public ShippingBaseRepository(ICultureService cultureService, IContentStateService contentStateService, INodeMapper nodeMapper) : base(cultureService, contentStateService, nodeMapper)
        {
        }
    }

    public class ShippingBaseRepository : ShippingBaseRepository<ShippingBaseCollection, ShippingBase>
    {
        public ShippingBaseRepository(ICultureService cultureService, IContentStateService contentStateService, INodeMapper nodeMapper)
            : base(cultureService, contentStateService, nodeMapper)
        {
        }
    }


    public interface IShippingBaseRepository<T> : IMedianamikRepository<T>
        where T : IShippingBase
    {
    }

    public interface IShippingBaseRepository : IShippingBaseRepository<ShippingBase>
    {
       
    }
}
